package me.yobol.datastructure.basic.list;

/**
 * 用于存储数据的数据元素，即节点。
 * 
 * @author Yobol
 */
public class Node {
    private int key;
    
    public Node(){
    
    }
    
    public Node(int key){
        this(key,null);
    }
    
    public Node(int key , Node next){
        this.key = key;
    }

    public int getKey() {
        return key;
    }

    public void setKey(int num) {
        this.key = num;
    }
}
